Hazard = class('Hazard', Feature)

function Hazard:initialize(name, image, x, y, rotation, text, damage, t, visible)

	self.text = text
	self.damage = damage
	self.t = t or "hazard"
	Feature.initialize(self, name, image, x, y, rotation, 0,0,0,0, self.t, visible)

end

function Hazard:update()

	Feature.update(self)

end

function Hazard:use()

	draw_text(self.text)
	p_damage(self.damage)

end

